package com.bzyd.cloud.fallback;

import com.alibaba.csp.sentinel.slots.block.BlockException;
import lombok.extern.slf4j.Slf4j;

/**
 * BlockException异常降级类
 * Created by Xianyue Dang on 2021/8/1
 */
@Slf4j
public class OrderServiceImpl3BlockHandlerClass {

    //注意这里必须用static修饰方法
    public static String blockHandler(BlockException ex){
        log.error("{}",ex);
        return "接口被限流或者降级了（类中）...";
    }

}
